package cn.fintecher.pangolin.entity.elastic;

import cn.fintecher.pangolin.common.utils.Constants;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.util.Date;

/**
 * @Author : huyanmin
 * @Description : 数据修复-特调计生图片资料
 * @Date : 2019/02/22.
 */
@Data
@Document(indexName = Constants.SPECIAL_TRANSFER_PHOTO_DATA, type = Constants.SPECIAL_TRANSFER_PHOTO_DATA, shards = 1, replicas = 0)
@ApiModel(value = "SpecialTransferPhotoData", description = "特调计生图片资料")
public class SpecialTransferPhotoData {

    @Id
    @ApiModelProperty(notes = "特定字段做Md5生成")
    private String id;

    @ApiModelProperty(notes = "特调计生资料关联id")
    private String parentId;

    @ApiModelProperty(notes = "姓名")
    private String name;

    @ApiModelProperty("证件号")
    private String idNo;

    @ApiModelProperty("关系人证件号")
    private String relationIdNo;

    @ApiModelProperty("关系")
    private String relation;

    @ApiModelProperty("类型 - 计生 特调")
    private String type;

    @ApiModelProperty("文件名")
    private String fileName;

    @ApiModelProperty("文件夹名称")
    private String docName;

    @ApiModelProperty("证件类型")
    private String certificatesType;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("文件路径")
    private String fileUrl;

    @ApiModelProperty("导入日期")
    private Date importDate;

    @ApiModelProperty("批次号")
    private String batchNumber;

}
